<?php
namespace App\Models\Admin;

class YzmModel extends BaseModel
{
    /**
     * 验证码
     */

    protected $table = 'users_yzm';
    protected $fillable = [
        'id','phone','code','status','created_at',
    ];

    /**
     * 发送状态：1发送失败，2发送成功
     */

    public function getAdminIndex()
    {
        $models = YzmModel::paginate(10);
        $models->limit = 10;
        return $models;
    }
}